package com.qifan.energy.adapter;

import android.graphics.Paint;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.qifan.energy.R;
import com.qifan.energy.bean.result.OrderItem;
import com.qifan.energy.global.GlideApp;
import com.qifan.energy.util.CheckUtil;

import java.util.List;

public class CategoryNewListAdapter extends BaseQuickAdapter<String,BaseViewHolder> {

    public CategoryNewListAdapter(@Nullable List<String> data) {
        super(R.layout.home_list_item, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, String item) {
        helper.setText(R.id.name_tv,"能量精选为您推荐")
                .setText(R.id.price_tv, String.valueOf(299.00));
        TextView originalPriceTv1 = helper.getView(R.id.original_price_tv);
        originalPriceTv1.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG);
    }
}
